package org.example;

import org.example.config.RpcConfig;
import org.example.utils.ConfigUtils;

public class ConsumerConfigExample {
    public static void main(String[] args) {
        RpcConfig rpc;
        while (true){
            rpc = ConfigUtils.loadConfig(RpcConfig.class, "rpc","");
            System.out.println(rpc);
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
